import { getRequest, postRequest, putRequest } from '/@/lib/axios';

/**
 * 请假相关的 API 接口集合
 */
export const leaveApi = {
  submitLeave: (processKey, data) => postRequest(`/workflow/leaveapply/submit/${processKey}`, data),
  previewLeave: (processKey, data) => postRequest(`/workflow/leaveapply/preview/${processKey}`, data),
  previewLeave2: (processKey, data) => postRequest(`/workflow/leaveapply/preview2/${processKey}`, data),
  getLeaveDetail: (procInsId) => getRequest(`/workflow/leaveapply/detail/${procInsId}`),
};
